<div class="container news-page">
  <div class="row">
    <div class="col-md-5">
      <div class="img-scroll">
        <img class="img-scroll-bg img-responsive" src="assets/image/webbanner.jpg">
        <div class="img-scroll-title">
          创建最好新农村
        </div>
      </div>
    </div>
    <div class="col-md-7">
      <div class="card-box">
        <div class="card-header">
          <h4 class="card-title">财经新闻</h4>
        </div>
        <div class="card-content">
          <dl class="dl-horizontal dl-news-list">
            <dt>
              <a>
                Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quod doloremque quo rem facere qui, ratione omnis magni dolorem perspiciatis ad voluptatem porro magnam sed repellat voluptatum incidunt, quas aperiam recusandae!
              </a>
            </dt>
            <dd>2055-01-01</dd>
          </dl>

          <dl class="dl-horizontal dl-news-list">
            <dt>
              <a>
                Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quod doloremque quo rem facere qui, ratione omnis magni dolorem perspiciatis ad voluptatem porro magnam sed repellat voluptatum incidunt, quas aperiam recusandae!
              </a>
            </dt>
            <dd>2055-01-01</dd>
          </dl>
          <dl class="dl-horizontal dl-news-list">
            <dt>
              <a>
                Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quod doloremque quo rem facere qui, ratione omnis magni dolorem perspiciatis ad voluptatem porro magnam sed repellat voluptatum incidunt, quas aperiam recusandae!
              </a>
            </dt>
            <dd>2055-01-01</dd>
          </dl>
          <dl class="dl-horizontal dl-news-list">
            <dt>
              <a>
                Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quod doloremque quo rem facere qui, ratione omnis magni dolorem perspiciatis ad voluptatem porro magnam sed repellat voluptatum incidunt, quas aperiam recusandae!
              </a>
            </dt>
            <dd>2055-01-01</dd>
          </dl>
          <dl class="dl-horizontal dl-news-list">
            <dt>
              <a>
                Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quod doloremque quo rem facere qui, ratione omnis magni dolorem perspiciatis ad voluptatem porro magnam sed repellat voluptatum incidunt, quas aperiam recusandae!
              </a>
            </dt>
            <dd>2055-01-01</dd>
          </dl>
          <dl class="dl-horizontal dl-news-list">
            <dt>
              <a>
                Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quod doloremque quo rem facere qui, ratione omnis magni dolorem perspiciatis ad voluptatem porro magnam sed repellat voluptatum incidunt, quas aperiam recusandae!
              </a>
            </dt>
            <dd>2055-01-01</dd>
          </dl>
          <dl class="dl-horizontal dl-news-list">
            <dt>
              <a>
                Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quod doloremque quo rem facere qui, ratione omnis magni dolorem perspiciatis ad voluptatem porro magnam sed repellat voluptatum incidunt, quas aperiam recusandae!
              </a>
            </dt>
            <dd>2055-01-01</dd>
          </dl>
          <dl class="dl-horizontal dl-news-list">
            <dt>
              <a>
                Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quod doloremque quo rem facere qui, ratione omnis magni dolorem perspiciatis ad voluptatem porro magnam sed repellat voluptatum incidunt, quas aperiam recusandae!
              </a>
            </dt>
            <dd>2055-01-01</dd>
          </dl>
        </div>
      </div>
    </div>
  </div>

  <div class="row">
    <div class="col-md-2">
      <div class="category">
        <ul class="category-list list-unstyled">
          <li *ngFor="let item of categoryList;let i=index" class="category-item" [class.active]="i==currentIndex" (click)="onChangeCategory(i)">
            {{item.CategoryName}}
          </li>
        </ul>
      </div>
    </div>
    <div class="col-md-7">
      <div class="card-box">
        <div class="card-header">
          <h4 class="card-title">新闻资讯</h4>
        </div>
        <div class="card-content">
          <div class="news" style="height: auto;">
            <div class="news-list">
              <div class="news-item" *ngFor="let item of newsList">
                <img class="news-img" [src]="item.IconUrl">
                <div class="news-content">
                  <a class="news-title" [routerLink]="['/index/news', item.Id]">
                    {{item.Title}}
                  </a>
                  <!--<div class="news-text">
                    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iusto, minima explicabo molestiae consequatur, voluptates beatae impedit, labore animi modi cumque perferendis sapiente ea molestias officia dolore assumenda dicta ratione neque.
                  </div>-->
                </div>
              </div>
            </div>
          </div>
          <!--<nav class="pagination-nav text-center">
              <pagination-controls 
                [id]="pagination.id" 
                (pageChange)="onPageChange($event)" 
                maxSize="7" directionLinks="true" 
                autoHidden="true" 
                previousLabel="上一页" 
                nextLabel="下一页">
              </pagination-controls>
          </nav>-->
        </div>
      </div>
    </div>
    <div class="col-md-3">
      <div class="card-box">
        <div class="card-header">
          <h4 class="card-title">热点资讯</h4>
        </div>
        <div class="card-content hot">
          <ul class="hot-list list-unstyled">
            <li class="hot-item">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi minima commodi, deserunt aperiam ratione, veritatis iusto maxime quibusdam reiciendis, tempora blanditiis illo enim sapiente magnam quos laudantium explicabo consequatur itaque!</li>
            <li class="hot-item">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quibusdam consectetur impedit maxime suscipit veniam quasi incidunt, aspernatur? Iusto assumenda accusamus doloremque delectus enim officia magnam cupiditate recusandae. Sunt, obcaecati, at.</li>
            <li class="hot-item">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi minima commodi, deserunt aperiam ratione, veritatis iusto maxime quibusdam reiciendis, tempora blanditiis illo enim sapiente magnam quos laudantium explicabo consequatur itaque!</li>
            <li class="hot-item">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quibusdam consectetur impedit maxime suscipit veniam quasi incidunt, aspernatur? Iusto assumenda accusamus doloremque delectus enim officia magnam cupiditate recusandae. Sunt, obcaecati, at.</li>
            <li class="hot-item">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi minima commodi, deserunt aperiam ratione, veritatis iusto maxime quibusdam reiciendis, tempora blanditiis illo enim sapiente magnam quos laudantium explicabo consequatur itaque!</li>
            <li class="hot-item">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quibusdam consectetur impedit maxime suscipit veniam quasi incidunt, aspernatur? Iusto assumenda accusamus doloremque delectus enim officia magnam cupiditate recusandae. Sunt, obcaecati, at.</li>
            <li class="hot-item">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi minima commodi, deserunt aperiam ratione, veritatis iusto maxime quibusdam reiciendis, tempora blanditiis illo enim sapiente magnam quos laudantium explicabo consequatur itaque!</li>
            <li class="hot-item">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quibusdam consectetur impedit maxime suscipit veniam quasi incidunt, aspernatur? Iusto assumenda accusamus doloremque delectus enim officia magnam cupiditate recusandae. Sunt, obcaecati, at.</li>
            <li class="hot-item">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi minima commodi, deserunt aperiam ratione, veritatis iusto maxime quibusdam reiciendis, tempora blanditiis illo enim sapiente magnam quos laudantium explicabo consequatur itaque!</li>
            <li class="hot-item">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quibusdam consectetur impedit maxime suscipit veniam quasi incidunt, aspernatur? Iusto assumenda accusamus doloremque delectus enim officia magnam cupiditate recusandae. Sunt, obcaecati, at.</li>
          </ul>
        </div>
      </div>
      <div class="card-box">
        <div class="card-header">
          <h4 class="card-title">热门商品</h4>
        </div>
        <div class="card-content calendar-list">
          <table class="table tabel-no-border">
            <thead>
              <tr>
                <td>商品名称</td>
                <td>最新价</td>
                <td>涨跌幅</td>
              </tr>
            </thead>
            <tbody>
              <tr *ngFor="let item of productList">
                <td>{{item.SymbolDisplay}}</td>
                <td [ngClass]="{'td-add': item?.quote?.floating > 0, 'td-mutil': item?.quote?.floating < 0}">{{item?.quote?.CurrentPrice}}</td>
                <td [ngClass]="{'td-add': item?.quote?.floating > 0, 'td-mutil': item?.quote?.floating < 0}">{{item?.quote?.percent}}%</td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
    </div>
  </div>
</div>